package com.simple.base.common.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author kin
 * @since 2017/12/22
 */
public class JWTToken implements AuthenticationToken {

    private static final long serialVersionUID = 745310275721479101L;
    private String token;

    public JWTToken(String token) {
        this.token = token;
    }

    @Override
    public String getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
